package io.renren.service.impl;

import io.renren.dao.AppReportDao;
import io.renren.datasources.DataSourceNames;
import io.renren.datasources.annotation.DataSource;
import io.renren.entity.AlarmEntity;
import io.renren.entity.RecorderInfoPO;
import io.renren.service.AppReportService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * Created by ThinkPad on 2018/11/26.
 */
@Service
public class AppReportServiceImpl implements AppReportService{

    @Autowired
    private AppReportDao appReportDao;

    @Override
    public int save_app_report_info(RecorderInfoPO appinfo) {
        return appReportDao.save_app_report_info(appinfo);
    }

    @DataSource(name = DataSourceNames.FOURTH)
    @Override
    public int save_report_jqlr(AlarmEntity alarmEntity) {
        return appReportDao.save_report_jqlr(alarmEntity);
    }

    @Override
    public List<Map> queryAppReport(Map paramMap) {
        return appReportDao.queryAppReport(paramMap);
    }
}
